<?php
/**
 * Created by PhpStorm.
 * User: s.utkin
 * Date: 24.10.14
 * Time: 14:51
 */
namespace Pinenut\Test\Mocks;



class Session extends \Pinenut\Session
{
	protected static $storage;

	public static function start()
	{

	}

	public static function getId()
	{
		return 'test_session_id';
	}

	public static function getValue($key, $default = null)
	{
		return isset (static::$storage[$key]) ? static::$storage[$key] : $default;
	}

	public static function setValue($key, $value)
	{
		static::$storage[$key] = $value;
	}

	public static function unsetValue($key)
	{
		unset (static::$storage[$key]);
	}

} 